<%@page import="ll.sms.factory.BeanFactory"%>
<%@ page language="java"
	import="ll.sms.interfaces.*,ll.sms.util.*,ll.sms.web.*,ll.sms.pojo.*"
	pageEncoding="utf-8"%>
<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path + "/";
	SmsAdmin smsAdmin = (SmsAdmin) session.getAttribute("user");

	if (smsAdmin == null) {
		response.sendRedirect(basePath + "login.html");
	} else if (smsAdmin.getArank() == SmsConstant.ADMIN_TYPE) {
		response.sendRedirect(basePath + "jsps/index.jsp");
	} else if (smsAdmin.getArank() == SmsConstant.PROXY_TYPE) {
		response.sendRedirect(basePath + "jsps/proxyindex.jsp");
	} else if (smsAdmin.getArank() == SmsConstant.OPERATOR_TYPE) {
		response.sendRedirect(basePath + "jsps/operatorindex.jsp");
	} else {
		response.sendRedirect(basePath + "login.html");
	}
%>

